﻿using System.ComponentModel.Design;

namespace eg_035_交错数组
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入年份：");
            int year = int.Parse(Console.ReadLine());
            byte[][] months = new byte[12][];
            for (int month = 0; month < 12; month++)
            {
                if (month < 7)
                {
                    if (month % 2 == 0)
                    {
                        months[month] = new byte[31];
                    }
                    else if (month == 1)
                    {
                        if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) months[month] = new byte[29];
                        else months[month] = new byte[30];
                    }
                    else months[month] = new byte[30];
                }
                else
                {
                    if (month % 2 == 0)
                    {
                        months[month] = new byte[30];

                    }
                    else { months[month] = new byte[31]; }
                }
            }
        }
    }
}